package com.application.lucky.widget.slidebar;

import com.application.lucky.bean.jsonBean.UiBean;

import java.util.Comparator;

/**
 *
 * 类简要描述
 *
 * <p>
 * 类详细描述
 * </p>
 *
 * @author duanbokan
 *
 */

public class FriendsComparator implements Comparator<UiBean>
{

	@Override
	public int compare(UiBean o1, UiBean o2)
	{
		if (o1.getLetters().equals("@")
				|| o2.getLetters().equals("#")) {
			return -1;
		} else if (o1.getLetters().equals("#")
				|| o2.getLetters().equals("@")) {
			return 1;
		} else {
			return o1.getLetters().compareTo(o2.getLetters());
		}

	}

}
